翠欧控制器以太网连接
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace WindowsFormsApp1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
axTrioPC1.HostAddress = "127.0.0.1";
//打开以太网连接
axTrioPC1.Open(2,0);
}
private void button2_Click(object sender, EventArgs e)
{
//设置速度
double d;
axTrioPC1.SetVr(100,123.321);
axTrioPC1.GetVr(101,out d);
//点动
axTrioPC1.MoveRel(1, 500, 0);
}
}
}.
├── WindowsFormsApp1
│ ├── App.config
│ ├── Form1.Designer.cs
│ ├── Form1.cs
│ ├── Form1.resx
│ ├── Program.cs
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── WindowsFormsApp1.csproj
│ ├── WindowsFormsApp1.sln
│ ├── bin
│ │ └── Debug
│ │ ├── AxInterop.TrioPCLib.dll
│ │ ├── Interop.TrioPCLib.dll
│ │ ├── WindowsFormsApp1.exe
│ │ ├── WindowsFormsApp1.exe.config
│ │ └── WindowsFormsApp1.pdb
│ └── obj
│ └── Debug
│ ├── AxInterop.TrioPCLib.dll
│ ├── DesignTimeResolveAssemblyReferences.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ ├── Interop.TrioPCLib.dll
│ ├── TempPE
│ ├── WindowsFormsApp1.Form1.resources
│ ├── WindowsFormsApp1.Properties.Resources.resources
│ ├── WindowsFormsApp1.csproj.AssemblyReference.cache
│ ├── WindowsFormsApp1.csproj.CoreCompileInputs.cache
│ ├── WindowsFormsApp1.csproj.FileListAbsolute.txt
│ ├── WindowsFormsApp1.csproj.GenerateResource.cache
│ ├── WindowsFormsApp1.csproj.ResolveComReference.cache
│ ├── WindowsFormsApp1.csproj.SuggestedBindingRedirects.cache
│ ├── WindowsFormsApp1.exe
│ └── WindowsFormsApp1.pdb
└── 找例子网_WindowsFormsApp1.rar
7 directories, 32 files
评论